package Day3Zuoye;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Test4 {
    public static void main(String[] args) {
        SimpleDateFormat s=new SimpleDateFormat("MM-dd");
        Calendar c=Calendar.getInstance();
        c.set(2021,1,3);
        for (int i=1;i<=362;i+=7){
            c.add(Calendar.DATE,7);
            String j=s.format(c.getTime());
            System.out.println(j);
        }
    }
}
